<?

require_once ("util/Transformer.php");
require_once ("util/Generator.php");
require_once ("dao/MiexpDao.php");



class Evi2Plim {
	public function show($dados,$disabled ="")
	{
		$transformer = new Transformer();
		$generator = new Generator();
		$transformer->setDirFisicoTemplates("template/");
		$transformer->setArquivoTemplate("esqueletoBase.htm"); //Inclui o templete base de todas as telas.
		$valoresTroca = array ();
		$valoresTroca["titulo"] = $this->getTitulo();
		$valoresTroca["combo"] = $generator->getCombo();
		$valoresTroca["header"] = $generator->getHeader();
		$valoresTroca["menu"] = $generator->getMenu();
		$valoresTroca["atalhos"] = $generator->getAtalhos("marcacao");
		$valoresTroca["footer"] = $generator->getFooter();
		$valoresTroca["erro"] = $generator->getErro();
		$valoresTroca["alerta"] = $generator->getAlerta();
		$valoresTroca["body"] = $this->getBody($disabled);
		$transformer->setValoresTroca($valoresTroca);
		$saida = $transformer->processaHTML();
		echo $saida;
	}

	private function getTitulo()
	{
		$titulo = "SIMweb ::Miexp Evi -> Plim";
		return $titulo;
	}

	private function getBody($disabled)
	{	
		$valoresTroca["Qtd"] = $_REQUEST['Qtd'];
		$valoresTroca["Bytes"] = $_REQUEST['Bytes'];	
		$valoresTroca["blob"] = $_REQUEST['blob'];	
		$valoresTroca["total"] = ($_REQUEST['Bytes']+$_REQUEST['blob']);		

		$transformer = new Transformer();
		$transformer->setDirFisicoTemplates("template/MIEXP/");
		$transformer->setArquivoTemplate("MiexpDaoEvi.htm");
		$transformer->setValoresTroca($valoresTroca);
		$saida = $transformer->processaHTML();
		return $saida;	
	}
}


?>